import os


class configuration_file():
    def __init__(self):
        self.rootpath = r"/home/pwq/DefectPredictionPart1"
        self.datafolderPath = os.path.join(self.rootpath, "Data1")
        self.saveResultsPath = os.path.join(self.rootpath, 'test_result')
        self.jar_path = os.path.join(self.rootpath, "RankLib.jar")

        self.bootstrap_count = 20        # bootstrap的次数
        self.bootstrap_dir = os.path.join(self.rootpath, "bootstrap_csv")     # bootstrap的csv存放文件夹
        self.is_remain_origin_bootstrap_csv = True          # 是否保留之前bootstrap的结果？？False：不保留 True：保留
        self.save_five_measures_dir = os.path.join(self.rootpath, "five_result")  # 保存五个指标结果的文件夹
        pass

    def getrootpath(self, a):
        return self.rootpath
